package model;

/**
 * 
 * @author Maja Gliese
 */


public class Cargo {
    
    int ID;
    String cargoType;
    int price;
    int lower;
    int upper;
    int cargoWeight;
    
    public Cargo(int ID,String cargoType, int price, int lower, int upper, int cargoWeight){
        
        this.ID = ID;
        this.cargoType = cargoType;
        this.price = price;
        this.lower = lower;
        this.upper = upper;
        this.cargoWeight = cargoWeight;       
    }    

    public int getID() {
        return ID;
    }

    public String getCargoType() {
        return cargoType;
    }

    public void setCargoType(String cargoType) {
        this.cargoType = cargoType;
    }

    public int getPrice() {
        return price;
    }

    public int getLower() {
        return lower;
    }

    public int getUpper() {
        return upper;
    }

    public int getCargoWeight() {
        return cargoWeight;
    }

    public void setCargoWeight(int cargoWeight) {
        this.cargoWeight = cargoWeight;
    }

    
    public String toString(){
     return price + "";    
    }
      
    public String toStringSql(){
        return "(" + ID + ", '" + cargoType + "' ," + price + "," + lower + "," + upper + "," + cargoWeight + ";";
    }
    

}
